    INCLUDE    "graphics/grafix.inc"
    
IF !__CPU_INTEL__ && !__CPU_GBZ80__
    SECTION code_graphics
    PUBLIC  w_line

    EXTERN  w_line_r

    EXTERN  __gfx_coords

;
;    $Id: w_line.asm,v 1.9 2016-10-18 06:52:34 stefano Exp $
;

; ******************************************************************************
;
;    Draw a pixel line from (x0,y0) defined in COORDS (word,word) - the starting point coordinate,
;    to the end point (HL,DE).
;
;      Wide resolution (WORD based parameters) version by Stefano Bodrato
;

.w_line
    ex      de,hl
    ld      bc,(__gfx_coords+2)
    or      a
    sbc     hl,bc
    ex      de,hl

    ld      bc,(__gfx_coords)
    or      a
    sbc     hl,bc

    jp      w_line_r
ENDIF
